<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/public/img/favicon.ico">

    <title>我的</title>

    <!-- Bootstrap core CSS -->
    <link href="./../public/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="./../public/css/jumbotron-narrow.css" rel="stylesheet">

</head>

<body>

    <div class="container">
        <div class="header clearfix">
            <nav>
                <ul class="nav nav-pills pull-right">
                    <li role="presentation"><a href="/">首页</a></li>
                    <li role="presentation"><a href="/addNote">发起</a></li>
                    <li role="presentation"><a href="#">关于</a></li>
                    <li role="presentation"><a href="#">联系</a></li>
                </ul>
            </nav>
            <h3 class="text-muted">个人中心</h3>
        </div>

        <div>
            <form id="mina_form" method="POST" action="/editUserInfo?_csrf={{ ctx.csrf | safe }}"
                enctype="multipart/form-data">
                <input type="hidden" name="id" value="{{ user.ID }}">
                <div class="form-group">
                    <label for="title">头像</label>
                    <br>
                    <img src="{{ user.avatar }}" width="138" height="138" alt="..." class="img-circle">
                </div>
                <div class="form-group">
                    <label for="exampleInputFile">选择头像</label>
                    <input type="file" name="file" id="exampleInputFile" required="required">
                </div>
                <div class="form-group">
                    <label for="title">用户名</label>
                    <input type="text" class="form-control" value="{{ user.userName }}" id="userName" name="userName" placeholder="userName"
                        required="required">
                </div>
                <div class="form-group">
                    <label for="content">个人简介</label>
                    <textarea class="form-control" id="profile" name="profile" rows="3" placeholder="profile"
                        required="required">{{ user.profile }}</textarea>
                </div>
                <button type="submit" class="btn btn-default">确认</button>
            </form>
        </div>
        <br>
        <br>
        <footer class="footer">
            <p>&copy; 2019 Company, Inc.</p>
        </footer>

    </div>
</body>

</html>